package myky.com.doctorapp.entity;

import java.util.List;

public class PersionInfoEntity {

    private String name;
    private String type;
    private boolean isRequired;
    private List<String> value;
    private List<OptionsBean> options;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isIsRequired() {
        return isRequired;
    }

    public void setIsRequired(boolean isRequired) {
        this.isRequired = isRequired;
    }

    public List<String> getValue() {
        return value;
    }

    public void setValue(List<String> value) {
        this.value = value;
    }

    public List<OptionsBean> getOptions() {
        return options;
    }

    public void setOptions(List<OptionsBean> options) {
        this.options = options;
    }

    public static class OptionsBean {
        /**
         * text : 未填
         * value : -1
         */

        private String text;
        private int value;

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        @Override
        public String toString() {
            return "OptionsBean{" +
                    "text='" + text + '\'' +
                    ", value=" + value +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "PersionInfoEntity{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", isRequired=" + isRequired +
                ", value=" + value +
                ", options=" + options +
                '}';
    }
}
